package io.github.yidasanqian.configserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * http请求地址和资源文件映射如下:
 * <p>
 * /{application}/{profile}[/{label}]<br/>
 * /{application}-{profile}.yml<br/>
 * /{label}/{application}-{profile}.yml<br/>
 * /{application}-{profile}.properties<br/>
 * /{label}/{application}-{profile}.properties<br/>
 * 启动程序：访问http://localhost:8888/foo/dev
 */
@EnableConfigServer
@SpringBootApplication
public class ConfigServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ConfigServerApplication.class, args);
    }
}
